import Layout from '@/layout'

export default [
  {
    hidden: true,
    path: '/app/download',
    name: 'download',
    component: () => import('@/pages/app/download/index'),
    meta: { title: 'download' }
  },
  {
    path: '/app/manage',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/manage',
        name: 'app',
        component: () => import('@/pages/app/manage/index'),
        meta: { title: 'app' }
      }
    ]
  },
  {
    path: '/app/resource/:appId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/resource/:appId',
        name: 'AppResource',
        component: () => import('@/pages/app/resource/index'),
        meta: { title: 'app resource' }
      }
    ]
  },
  {
    path: '/app/activity/:appId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/activity/:appId',
        name: 'activity',
        component: () => import('@/pages/app/activity/index'),
        meta: { title: 'activity' }
      }
    ]
  },
  {
    path: '/app/activity/version/:activityId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/activity/version/:activityId',
        name: 'ActivityVersion',
        component: () => import('@/pages/app/activity/version/index'),
        meta: { title: 'activity version' }
      }
    ]
  },
  {
    path: '/app/package/:appId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/package/:appId',
        name: 'installPackage',
        component: () => import('@/pages/app/package/index'),
        meta: { title: 'install package' }
      }
    ]
  },
  {
    path: '/app/device/:appId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/app/device/:appId',
        name: 'device',
        component: () => import('@/pages/app/device/index'),
        meta: { title: 'device' }
      }
    ]
  }
]
